<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>登录</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />

</head>
<body>

    <header class="aui-bar aui-bar-nav aui-bar-light" id="header">
    <a class="aui-pull-left aui-btn" tapmode onclick="api.closeWin();">
        <span class="aui-iconfont aui-icon-left"></span>
    </a>
    <div class="aui-title">会员登录</div>
    <a class="aui-pull-right" tapmode onclick="fnOpenRegisterWin();">
        <span style="color:#03a9f4">注册</span>
    </a>
</header>
</body>
<script type="text/javascript" src="../script/api.js" ></script>
<script type="text/javascript">
apiready = function() {
    var header = $api.byId('header');//获取节点
    $api.fixStatusBar(header);//固定状态栏
    var headerH = $api.offset(header).h;//获取header的高
    api.openFrame({//打开一个frame
        name: 'login_frame',
        url: './login_frame.html',
        rect: {//定位下面
            x: 0,
            y: headerH,
            w: 'auto',
            h: 'auto'
        },
        pageParam: {//需要传到下个页面的参数
            name: 'test'
        },
        bounces: true//弹跳开启
    });
};

function fnOpenRegisterWin () {
    api.openWin({
        name: 'register',
        url: './register.html',
        pageParam: {
            name: 'test'
        }
    });
}
</script>
</html>
